package com.itheima.service.impl;

import com.itheima.mapper.OrderDao;
import com.itheima.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IOrderServiceImpl implements IOrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public Integer getTodayVisitsNumber(String date) {
        return orderDao.getTodayVisitsNumber(date);
    }

    @Override
    public Integer getVisitsNumberBydates(List<String> dates) {
        return orderDao.getVisitsNumberBydates(dates);
    }

    @Override
    public Integer getOrderNumberByDate(List<String> dates) {
        return orderDao.getOrderNumberByDate(dates);
    }

    @Override
    public Integer getTodayOrderNumber(String date) {
        return orderDao.getTodayOrderNumber(date);
    }
}
